package com.microinvest.entity;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
//实体化股票表
public class Stock {
     private String stockSymbol;
     private List<StockData> stockData;
     private String jsonString;

     public Stock(String stockSymbol,List<StockData> stockData){
          this.stockSymbol=stockSymbol;
          this.jsonString= JSONObject.toJSONString(stockData);
     }

};


